<div class="row">

  <form class="form-horizontal" ng-submit="submitPasswordInfo()" role="form">
    <div class="form-group">
      <label class="control-label col-sm-3" for="password">输入原密码</label>
      <div class="controls col-sm-6">
        <input id="password" name="password" class="form-control" ng-model="passwordInfo.password" type="password" />
      </div>
      <div ng-show="errorMessages.password" ng-bind="errorMessages.password" class="col-sm-3 alert-warning"></div>
    </div>

    <div class="form-group">
      <label class="control-label col-sm-3" for="newPassword">输入新密码</label>
      <div class="controls col-sm-6">
        <input id="newPassword" name="newPassword" class="form-control" ng-model="passwordInfo.newPassword" type="password"/>
      </div>
      <div ng-show="errorMessages.newPassword" ng-bind="errorMessages.newPassword" class="col-sm-3 alert-warning"></div>
    </div>

    <div class="form-group">
      <label class="control-label col-sm-3" for="newPassword_confirmation">再次输入新密码</label>
      <div class="controls col-sm-6">
        <input id="newPassword_confirmation" name="newPassword_confirmation" class="form-control" ng-model="passwordInfo.newPassword_confirmation" type="password" />
      </div>
      <div ng-show="errorMessages.newPassword_confirmation" ng-bind="errorMessages.newPassword_confirmation" class="col-sm-3 alert-warning"></div>
    </div>

    <div class="row">
      <div class="col-sm-offset-3 col-sm-2">
        <button type="submit" class="btn btn-primary btn-block">确认</button>
      </div>
      <div class="col-sm-2">
        <button type="button" class="btn btn-warning btn-block">取消</button>
      </div>

    </div>
  </form>

</div>
